package edu.up.taglibs;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.SimpleTagSupport;

public class ContatoTag extends SimpleTagSupport {

	@Override
	public void doTag() throws JspException, IOException {
		PageContext pageContext = (PageContext) getJspContext();
		try {
			JspWriter out = pageContext.getOut();
			out
					.print("<p align='center'>"
							+ "<img src='images/Alexandre.png'/><br/>"
							+ " <a href='mailto:alexandre.koslowski@gmail.com'><b>Alexandre Koslowski</b></a>"
							+ "</p>"
							+ "<br/>"
							+ "<p align='center'>"
							+ "<img src='images/Bruno.png'/><br/>"
							+ "<a href='mailto:cefalonx@gmail.com'><b>Bruno Mello</b></a>"
							+ "</p>"
							+ "<br/>"
							+ "<p align='center'>"
							+ "<img src='images/Cosme.png'/><br/>"
							+ "<a href='mailto:cosmemacedo@gmail.com'><b>Cosme Macedo</b></a>"
							+ "</p>");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
